import {
  create,
  NButton,
  NCard,
  NConfigProvider,
  NInput,
  NMessageProvider,
  NIcon,
  NInputGroup,
  NDataTable,
  NModal,
  NDialogProvider,
  NSelect,
  NPagination,
  NAlert,
  NTime,
  NDatePicker,
  NTag,
  NGrid,
  NGi,
  NProgress,
  NEllipsis
} from 'naive-ui'

const naive = create({
  components: [
    NButton,
    NCard,
    NConfigProvider,
    NInput,
    NMessageProvider,
    NIcon,
    NInputGroup,
    NDataTable,
    NModal,
    NDialogProvider,
    NSelect,
    NPagination,
    NAlert,
    NTime,
    NDatePicker,
    NTag,
    NGrid,
    NGi,
    NProgress,
    NEllipsis
  ]
})

export function registerNaive(app: any) {
  app.use(naive)
}
